package com.john.test.http.proxy.validator.data;

import com.john.test.http.proxy.data.ProxyItem;

import java.util.List;
import java.util.concurrent.BlockingQueue;

/**
 * 〈一句话功能简述〉<br/>
 * 〈功能详细描述〉
 *
 * @author jiangguangtao on 2016/4/29.

 */
public class ValidatorConfig {
    private double oneTimeMaxDelay = 60;
    private int testTimes = 3;
    private ProxyItem proxyItem;
    private List<TestSite> testSites;
    private BlockingQueue<ProxyItem> resultQueue;
    private int connectTimeout = 10000;

    public ValidatorConfig(ProxyItem proxyItem, List<TestSite> testSites, BlockingQueue<ProxyItem> resultQueue) {
        this.proxyItem = proxyItem;
        this.testSites = testSites;
        this.resultQueue = resultQueue;
    }

    public double getOneTimeMaxDelay() {
        return oneTimeMaxDelay;
    }

    public void setOneTimeMaxDelay(double oneTimeMaxDelay) {
        this.oneTimeMaxDelay = oneTimeMaxDelay;
    }

    public int getTestTimes() {
        return testTimes;
    }

    public void setTestTimes(int testTimes) {
        this.testTimes = testTimes;
    }

    public ProxyItem getProxyItem() {
        return proxyItem;
    }

    public void setProxyItem(ProxyItem proxyItem) {
        this.proxyItem = proxyItem;
    }

    public List<TestSite> getTestSites() {
        return testSites;
    }

    public void setTestSites(List<TestSite> testSites) {
        this.testSites = testSites;
    }

    public BlockingQueue<ProxyItem> getResultQueue() {
        return resultQueue;
    }

    public void setResultQueue(BlockingQueue<ProxyItem> resultQueue) {
        this.resultQueue = resultQueue;
    }

    public int getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }
}
